﻿@model SportStore.Models.Entities.ShippingDetails

@{
    ViewBag.Title = "Checkout";
}

<h2>Check out now</h2>
Please enter your details, and we'll ship your goods rigth away!
@using (Html.BeginForm())
{
    @Html.ValidationSummary()
    
    <table>
    <tr><td colspan="2"><h3>Ship to</h3></td></tr>
    <tr><td>Name:</td><td>@Html.EditorFor(x => x.Name)</td></tr>
    <tr>
    <td colspan="2"><h3>Address</h3></td>
    </tr>
    <tr><td>Line 1:</td><td>@Html.EditorFor(x => x.Line1) @Html.ValidationMessageFor(x=>x.Line1)</td></tr>
    <tr><td>Line 2:</td><td>@Html.EditorFor(x => x.Line3)</td></tr>
    <tr><td>Line 3:</td><td>@Html.EditorFor(x => x.Line2)</td></tr>
    <tr><td>City:</td><td>@Html.EditorFor(x => x.City)</td></tr>
    <tr><td>State:</td><td>@Html.EditorFor(x => x.State)</td></tr>
    <tr><td>Zip:</td><td>@Html.EditorFor(x => x.Zip)</td></tr>
    <tr><td>Country:</td><td>@Html.EditorFor(x => x.Country)</td></tr>
    <tr><td colspan="2"><h3>Options</h3></td></tr>
    <tr><td colspan="2"><label>
    @Html.EditorFor(x => x.GiftWrap)
    Gift wrap these items
    </label></td></tr>
    </table>
    @*
    <h3>Ship to</h3>
    <div>Name: @Html.EditorFor(x => x.Name)</div>
    
    <h3>Address</h3>
    <div>Line 1: @Html.EditorFor(x => x.Line1)</div>
    <div>Line 2: @Html.EditorFor(x => x.Line3)</div>
    <div>Line 3: @Html.EditorFor(x => x.Line2)</div>
    <div>City:@Html.EditorFor(x => x.City)</div>
    <div>State:@Html.EditorFor(x => x.State)</div>
    <div>Zip:@Html.EditorFor(x => x.Zip)</div>
    <div>Country:@Html.EditorFor(x => x.Country)</div>
    
    <h3>Options</h3>
    <label>
    @Html.EditorFor(x => x.GiftWrap)
    Gift wrap these items
    </label>
    *@
    <p align="center"><input class="actionButtons" type="submit" value="Complete order" /></p>
}